tag @s remove fisland_hasput
#放置方块
execute if entity @s[nbt={SelectedItem:{tag:{tag:{id:"fisland:crafting_table"}}}}] run tag @s add fisland_craftingtable
execute if entity @s[nbt={SelectedItem:{tag:{tag:{id:"fisland:crafting_table"}}}}] at @s anchored eyes run function fislandpp:put/put
execute if entity @s[nbt={SelectedItem:{tag:{tag:{id:"fisland:hand_grinder"}}}}] run tag @s add fisland_hand_grinder
execute if entity @s[nbt={SelectedItem:{tag:{tag:{id:"fisland:hand_grinder"}}}}] at @s anchored eyes run function fislandpp:put/put
execute if entity @s[nbt={SelectedItem:{tag:{tag:{id:"fisland:auto_grinder"}}}}] run tag @s add fisland_auto_grinder
execute if entity @s[nbt={SelectedItem:{tag:{tag:{id:"fisland:auto_grinder"}}}}] at @s anchored eyes run function fislandpp:put/put
#物品使用
execute if entity @s[nbt={SelectedItem:{tag:{tag:{id:"fisland:soul_stone"}}}}] run tag @s add fisland_soul_stone
execute if entity @s[nbt={SelectedItem:{tag:{tag:{id:"fisland:soul_stone",isEmpty:true}}}}] at @s anchored eyes run function fislandpp:put/ray
execute if entity @s[nbt={SelectedItem:{tag:{tag:{id:"fisland:soul_stone",isEmpty:false}}}},tag=fisland_soul_stone] at @s anchored eyes run function fislandpp:put/put
tag @s remove fisland_soul_stone
#归零
scoreboard players remove @s fisland_coas 1